package cn.edu.sgu.www.mhxysy.service.qiling;

import cn.edu.sgu.www.mhxysy.dto.qiling.QilingTaozhuangDTO;
import cn.edu.sgu.www.mhxysy.entity.qiling.QilingTaozhuang;
import cn.edu.sgu.www.mhxysy.pager.qiling.QilingTaozhuangPager;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface QilingTaozhuangService {

	String upload(MultipartFile file) throws IOException;

	/**
	 * 添加器灵套装
	 * @param qilingTaozhuangDTO 器灵套装信息
	 */
	void insert(QilingTaozhuangDTO qilingTaozhuangDTO);

	/**
	 * 通过ID修改器灵套装信息
	 * @param qilingTaozhuangDTO 器灵套装信息
	 */
	void updateById(QilingTaozhuangDTO qilingTaozhuangDTO);

	/**
	 * 通过ID修改器灵套装图片
	 * @param id 器灵套装ID
	 * @param image 图片地址
	 */
	void updateImageById(Integer id, String image);

	/**
	 * 查询全部器灵套装
	 * @return List<QilingTaozhuang>
	 */
	List<QilingTaozhuang> selectAll();

	/**
	 * 通过ID查询器灵套装信息
	 * @param id 器灵套装ID
	 * @return QilingTaozhuang
	 */
	QilingTaozhuang selectById(Integer id);

	/**
	 * 条件查询器灵套装列表
	 * @param pager 分页参数
	 * @return Page<QilingTaozhuang>
	 */
	Page<QilingTaozhuang> selectByPage(QilingTaozhuangPager pager);
}